
from selenium import webdriver
import time
driver = webdriver.Edge()
driver.get("https://www.baidu.com")
driver.add_cookie({'name':'BDUSS','value':'1FNRzJYa0h4TDZFMmFodml2S2VESWRGWGN5MjFDd1dzLU4wd2dqMERoR1pPU2xwSVFBQUFBJCQAAAAAAQAAAAEAAAADMYB6ZGxrMTIzNDU2MTEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJmsAWmZrAFpQ'})
time.sleep(3)
driver.refresh()
time.sleep(3)
driver.quit()